﻿@model  IEnumerable<YodaMaster.Models.Course>
@{
    ViewBag.Title = "View_Tests";
}

<h2>Tests</h2>



@Html.ActionLink("Back","Schedule_Courses_backward", "ScheduleController", null)



        @Html.ActionLink("My Schedule", "MySchedule")



<table border="1">  
    <tr> 
              
        <th> Course </th> 
        <th> Course ID </th> 
        <th> Moed A Start </th> 
         <th> Moed A End </th> 
        <th> Moed B Start </th> 
        <th> Moed  End </th> 
    </tr> 
             
   
    @foreach (var item in Model)     
    {         
        <tr> 
        @if(item.tests == true)       
        {   
            <td>@Html.DisplayFor(modelItem => item.name)</td> 
            <td>@Html.DisplayFor(modelItem => item.number)</td>              
            <td>@Html.DisplayFor(modelItem => item.moedA_start)</td> 
            <td>@Html.DisplayFor(modelItem => item.moedA_end)</td> 
            <td>@Html.DisplayFor(modelItem => item.moedB_start)</td> 
            <td>@Html.DisplayFor(modelItem => item.moedB_end)</td> 
        }         
        </tr> 
    }     
    
</table>


